@extends('admin')

@section('content')

    <p class="mb10">
        <a href="{{url('admin/bonus/update')}}" class="btn J_dialog" title="发布"><span class="add"></span>发布</a>
    </p>

    <div class="h_a">搜索</div>
    <div class="search_type cc mb10">
        <form action="{{url('admin/bonus/type')}}" method="get" class="search_form">
            <label for="search_title">标题：</label><input type="text" name="keyword" value="" style="width:170px; " placeholder="请输入产品名称或产品描述查询" id="search_title" class="input length_2 mr10"/>
            <button type="submit" class="btn">提交查询</button>
        </form>

    </div>

    <div class="table_list">
        <div id="data_list">
            <table class="items">
                <thead>
                <tr>
                    <th>ID</th>
                    <th>产品名称</th>
                    <th>产品描述</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                @foreach ($data as $v)
                    <tr>
                        <td>{{$v->id}}</td>
                        <td>{{$v->name}}</td>
                        <td>{{$v->description}}</td>
                        <td>
                            <a href="{{url('admin/bonus/update/'.$v->id)}}" title="编辑 " class="mr10 J_dialog">[编辑]</a>
                            <a href="{{url('admin/bonus/delete/'.$v->id)}}" class="mr10 J_ajax_del">[删除]</a>
                        </td>
                    </tr>
                    @endforeach
                </tbody>
            </table>
        </div>

        <div class="summary">
            共有 {{$data->total()}} 条数据
        </div>
        @if ($data->hasPages())
            <div class="pager">
                {!! $data->appends($appends)->render() !!}
            </div>
        @endif
    </div>

@stop